<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>数组对象常用的函数</title>
</head>
<body>
	<script type="text/javascript">
		var arr1=[1,2,3,4],arr2=[5,6,7]
   		// 合并数组 concat；
		arr3=arr1.concat(arr2);
		console.log(arr3);
		// 从数组选择元素组成新的数组 slice;
		var word=["a","b","c","d"];
		var new_word=word.slice(1,3);//截止的下标要加1：b，c  
		var t=word.slice(-3,4); 
		document.write(t);

 
	</script>

</body>
</html>